package com.anmoyi.model.dao;

import com.anmoyi.model.po.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    int insertSysuser(String phone);

    int insertSysuserrole(@Param("userId")int userId, @Param("roleid")int roleid);

    int selectSysuser(String phone);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


    User getByPhone(String phone);
}